
const mut = {
    index_nav: 'index_nav'
  };
  export default {
    state: {
      index_nav: 0,
      edit_site:{}
    },
    mutations: {
      //同步修改全局参数配置
      //获取方式 vue.$store.state.branchName
      //赋值方式 vue.$store.commit('名称','参数')
      [mut.index_nav](state,ob){
        state[mut.index_nav] = ob;
      },
      [EDIT_SITE] (state, ops) {
        state.edit_site['name'] = ops.name
      }
    }
  }